//
//  LWWalletView.m
//  LWShopItem
//
//  Created by mac on 17/5/31.
//  Copyright © 2017年 LWShop.com. All rights reserved.
//

#import "LWWalletView.h"
#import <Masonry.h>
#import "UIColor+Addition.h"

@implementation LWWalletView

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        
        [self setupUI];
        
    }
    
    return self;
    
}
#pragma MARK - UI
- (void)setupUI
{
    self.backgroundColor = [UIColor colorWithHex:0xCCCCCC];
    
    UILabel *sumlabel = [UILabel new];
    sumlabel.text = @"账户余额";
    sumlabel.textColor = [UIColor redColor];
    sumlabel.font = [UIFont systemFontOfSize:14];
    [self addSubview:sumlabel];
    
    [sumlabel mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.centerY.equalTo(self);
        
        make.left.equalTo(self).offset(80);
        
    }];
    
    UILabel *agLabel = [UILabel new];
    agLabel.text = @"￥";
    agLabel.textColor = [UIColor redColor];
    agLabel.font = [UIFont systemFontOfSize:22];
    [self addSubview:agLabel];
    
    [agLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.centerY.equalTo(self);
        
        make.left.equalTo(sumlabel.mas_right).offset(2);
        
    }];
    
    UILabel *moneyLabel = [UILabel new];
    moneyLabel.text = @"9999";
    moneyLabel.textColor = [UIColor redColor];
    moneyLabel.font = [UIFont systemFontOfSize:22];
    [self addSubview:moneyLabel];
    
    [moneyLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.centerY.equalTo(self);
        
        make.left.equalTo(agLabel.mas_right).offset(2);
        
        
    }];
    
}
@end
